package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author: Mamba
 * @version: 1.0
 * @Time: 2021/1/18 20:39
 * @Description:
 */
@FeignClient(name = "service-activity")
public interface SeckillFeignClient {

    //查询列表
    @GetMapping("/api/seckill/list")
    public List<SeckillGoods>list();

    //商品详情
    @GetMapping("/api/seckill/getSeckillGoods/{skuId}")
    public SeckillGoods getSeckillGoods(@PathVariable Long skuId);
}
